import { uploadFile } from "../api/common";

export function upload(file, func) {
  let formData = new FormData()
  formData.append('file', file)
  uploadFile(formData).then(res => {
    func(res.file.url)
  })
}
